package com.itcoon.transform4j.demo.web.vo;

import com.itcoon.transform4j.demo.domain.Student;
import com.itcoon.transform.base.annotation.AssembleModel;
import com.itcoon.transform.base.annotation.AssembleModelProperty;

@AssembleModel(from = Student.class)
public interface StudentVIO {

    @AssembleModelProperty(mapValue = "sid")
    Long getId();

    @AssembleModelProperty
    String getName();

    @AssembleModelProperty
    default Integer getAge(){
        return 18;
    }
}
